<!DOCTYPE html>
<html style="min-height: 713px;"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
        <meta charset="UTF-8">
        <title>新建打样</title>
        <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
        <!-- bootstrap 3.0.2 -->
        <link href="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/bootstrap.css" rel="stylesheet" type="text/css">
        <!-- font Awesome -->
        <link href="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/font-awesome.css" rel="stylesheet" type="text/css">
        <!-- Ionicons -->
        <link href="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/ionicons.css" rel="stylesheet" type="text/css">
        <!-- Theme style -->
        <link href="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/AdminLTE.css" rel="stylesheet" type="text/css">
        <link rel="stylesheet" type="text/css" href="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/bootstrap-select.css">
		<!--datetimepicker-->
		<link rel="stylesheet" type="text/css" href="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/bootstrap-combined.css">
		<link rel="stylesheet" type="text/css" href="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/bootstrap-datetimepicker.css">
        <link href="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/myself.css" rel="stylesheet" type="text/css">
	  
    	<style type="text/css">
    		*{
    			margin: 0;
    			padding: 0;
    		}
    		ul li{
    			list-style: none;
    			margin-top: 10px;
    		}
    		.pull-left{
    			border-left: 6px solid #3882FF;
    			padding: 0 5px;
    		}
    		.custormView{
    			margin-top: 10px;
    		}
    		.well{
	        	padding: 0;
	        	border: none;
	        	margin: 0;
	        	border-radius: 0;
	        	box-shadow: none;
	        	-webkit-box-shadow: none;
	        	background-color: white;
	        }
	        .table-bordered{
	        	border-collapse: collapse;
	        }
	        #datetimepicker1, #datetimepicker2{
	        	margin: 0;
	        }
	        #datetimepicker1 input, #datetimepicker2 input{
	        	height: 30px;
	        	padding: 7px;
	        	display: inline-block;
	        }
	        #datetimepicker1 .add-on, #datetimepicker2 .add-on{
	        	height: 30px;
	        	padding: 6px 5px;
	        	display: inline-block;
	        }
	        label{
	        	display: inline-block;
	        	margin: 0;
	        }
	        .row{
	        	padding: 0 0 0 20px;
	        }
    	</style>
    </head>
    <body class="skin-blue  pace-done" style="min-height: 713px;"><div class="pace  pace-inactive"><div class="pace-progress" style="width: 100%;" data-progress-text="100%" data-progress="99">
  <div class="pace-progress-inner"></div>
</div>
<div class="pace-activity"></div></div>
        <!-- header logo: style can be found in header.less -->
         <!-- header logo: style can be found in header.less -->
<header class="header">
	<a href="http://139.224.191.23/index.html" class="logo"> <img src="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/logo_03.jpg"> 后台管理系统
	</a>
	<!-- Header Navbar: style can be found in header.less -->
	<nav class="navbar navbar-static-top" role="navigation">
		<div class="navbar-right">
			<ul class="nav navbar-nav">
				<!-- Notifications: style can be found in dropdown.less -->
				<li class="dropdown notifications-menu" style="margin:0;">
					<a href="#" class="dropdown-toggle" data-toggle="dropdown"> 
						<i class="iconfont"></i> 设置
					</a>
				</li>
				<!-- User Account: style can be found in dropdown.less -->
				<li class="dropdown user user-menu" style="margin:0;"><a href="#" class="dropdown-toggle" data-toggle="dropdown"> <i class="glyphicon glyphicon-user"></i> <span><span id="name2">3dfsafttttt</span> <i class="caret"></i></span>
				</a>
					<ul class="dropdown-menu" style="padding: 0">

						<!-- User image -->
						<li class="user-header bg-light-blue">
							<ul class="pull-left" style="border:none;">
								<li id="email">账号：admin</li>
								<li id="name">姓名：3dfsafttttt</li>
								<li id="roleName">角色：设计总监</li>
							</ul>
						</li>
						<!-- Menu Footer-->
						<li class="user-footer">
							<div class="pull-left" style="border:none;">
								<a href="#" class="btn btn-default btn-flat change_btn">修改密码</a>
							</div>
							<div class="pull-right">
								<a id="exit" href="#" class="btn btn-default btn-flat">退出</a>
							</div>
						</li>
					</ul></li>
			</ul>
		</div>
	</nav>
</header>
<!--修改密码弹框-->
<img class="masking" src="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/mask.jpg" style="display: none;">
<div class="change_pw" style="display: none;">
	<img id="close" class="pull-right change_delet" src="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/close.png">
	<form id="passwordform" action="">
		<div class="old_pw">
			<div class="input-group">
				<span class="input-group-addon new_add">原密码</span> <input id="oldPassword" name="oldPassword" class="form-control" placeholder="请输入原密码" type="password">
			</div>
		</div>
		<div class="new_pw">
			<div class="input-group">
				<span class="input-group-addon">设置新密码</span> <input id="newPassword1" name="newPassword" class="form-control" placeholder="请输入新密码" type="password">
			</div>
			<div>密码由6~8位字母（字母区分大小写）和数字组成</div>
		</div>
		<div class="beSure_pw">
			<div class="input-group">
				<span class="input-group-addon">确认新密码</span> <input id="newPassword2" class="form-control" placeholder="请输入密码" type="password">
			</div>
			<div id="notSame">两次密码不一致</div>
		</div>
	</form>
	<div class="pull-right sure">
		<a id="updatePassword" href="#" class="btn btn-primary">确定</a> <a id="delete" href="#" class="btn btn-default">取消</a>
	</div>
</div>

<style type="text/css">
.user-header ul {
	margin-top: 5px;
	margin-left: 5px;
	padding: 0;
}

.user-header ul li {
	color: rgba(255, 255, 255, 0.8);
	text-align: left;
	margin-top: 20px;
	font-size: 17px;
	list-style: none;
}

.masking {
	width: 100%;
	height: 100%;
	position: fixed;
	top: 0;
	left: 0;
	opacity: 0.3;
	z-index: 2;
}

.change_pw {
	width: 400px;
	height: 300px;
	background: white;
	position: fixed;
	top: 50%;
	left: 50%;
	margin-left: -200px;
	margin-top: -150px;
	z-index: 3;
	border: 1px solid #bbb;
}

.new_pw, .old_pw, .beSure_pw {
	margin-top: 20px;
	margin-left: 10px;
}

.old_pw {
	margin-top: 40px;
}

.new_pw div:nth-child(2) {
	font-size: 14px;
	margin-left: 20px;
	margin-top: 5px;
	color: red;
}

.beSure_pw div:nth-child(2) {
	display: none; font-size : 14px;
	margin-left: 20px;
	margin-top: 5px;
	color: red;
	font-size: 14px;
}

.old_pw div {
	margin-left: 25px;
}

.change_pw .input-group {
	width: 90%;
}

.change_pw .input-group:nth-child(1) {
	margin-left: 10px;
}

.new_add {
	padding: 6px 27px;
}

.sure {
	margin-right: 15px;
}

.sure a {
	margin: 20px 10px 0 0;
}

.change_delet {
	margin: 10px 10px 0 0;
}

#delete {
	cursor: pointer;
}



/*新增样式  2016/12/01*/
.ol_left{
    width: 100%;
    height: 30px;
    line-height: 30px;
    padding: 0;
}
.ol_left>li{
    float: left;
    margin-right: 5px;
}
.ol_left li, .ol_left{
	margin-bottom: 0;
}
</style>

<script src="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/jquery_002.js" type="text/javascript"></script>

<script type="text/javascript">
	$('.masking').hide();
	$('.change_pw').hide();

	$('.change_btn').click(function() {
		$('.change_pw').show();
		$('.masking').show();
	});
	$('#delete').click(function() {
		$('.change_pw').hide();
		$('.masking').hide();
		$("#notSame").hide();
		$('#passwordform')[0].reset();
	});
	$('#close').click(function() {
		$('.change_pw').hide();
		$('.masking').hide();
		$("#notSame").hide();
		$('#passwordform')[0].reset();
	});
	$('#exit').click(function(){
		window.location.href="http://139.224.191.23/scm/logout";
	})
	$('#newPassword1').focus(function(){
		$("#notSame").hide();
	});
	$('#newPassword2').focus(function(){
		$("#notSame").hide();
	});
	$(function(){
		//向服务端获取当前用户基本信息
		var url="http://139.224.191.23/scm/sysuser/getUser";
		$.ajax({
			"url":url,
			"type":"get",
			"dataType":"json",
			"success":function(result){
				if(result.head.respCode=="0000000"){
					$('#name2').html(result.body.name);
					$('#email').html("账号："+result.body.email);
					$('#name').html("姓名："+result.body.name);
					var roleName="角色：";
					for(var i=0;i<result.body.roleName.length;i++){
						roleName+=result.body.roleName[i]+"、";
					}
					roleName=roleName.substring(0,roleName.length-1);
					$('#roleName').html(roleName);
				}
			},
			/* "error":function(result){
				if(result.head.respCode=="9999990"){
           		 	alert(result.body);
           		 }
			} */
		});
		//修改密码
		$('#updatePassword').click(function(){
			if($('#newPassword1').val()==""||$('#newPassword2').val()==""||$('#oldPassword').val()==""){
				alert("密码不能为空");
				return;
			}
			//两次密码不一致
			if($('#newPassword1').val()!=$('#newPassword2').val()){
				$("#notSame").show();
				return;
			}
			var formData = new FormData($('#passwordform')[0]);
			url="http://139.224.191.23/scm/sysuser/updatePassword";
			$.ajax({
				url: url,
				type: "post",
				data: formData,
				dataType: "json",
				async: false,  
	            cache: false,  
	            contentType: false,  
	            processData: false,
				success: function(result){
					if(result.head.respCode=="0000000"){
						alert(result.body);
						if(result.body=="密码修改成功"){
							window.location.href="http://139.224.191.23/scm/logout";
						}
						$('#passwordform')[0].reset();
					}
				},
				"error": function(result){
					if(result.head.respCode=="9999990"){
		           		 alert(result.body);
		           		$('#passwordform')[0].reset();
		           	}
				}
			});
		});
	})
</script>        <div class="wrapper row-offcanvas row-offcanvas-left" style="min-height: 713px;">
            <!-- Left side column. contains the logo and sidebar -->
<aside class="left-side sidebar-offcanvas" style="min-height: 713px;">
                <!-- sidebar: style can be found in sidebar.less -->
                <section class="sidebar">
                    <!-- sidebar menu: : style can be found in sidebar.less -->
                    <ul class="sidebar-menu">
                     <li class="active">
                            <a href="http://139.224.191.23/scm/productionorder/index">
                                <i class="fa fa-th"></i> <span>工作台</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                                                	 <li>
                            <a href="http://139.224.191.23/scm/designorder/list">
                                <i class="fa fa-th"></i> <span>设计订单</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        	 <li>
                            <a href="http://139.224.191.23/scm/proofingorder/list">
                                <i class="fa fa-th"></i> <span>打样订单</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        	 <li>
                            <a href="http://139.224.191.23/scm/productionorder/list">
                                <i class="fa fa-th"></i> <span>大货订单</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        	 <li>
                            <a href="http://139.224.191.23/scm/hisgoryorder/list">
                                <i class="fa fa-th"></i> <span>历史订单</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        	 <li>
                            <a href="http://139.224.191.23/scm/customer/list">
                                <i class="fa fa-th"></i> <span>客户管理</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        	 <li>
                            <a href="http://139.224.191.23/scm/factory/list">
                                <i class="fa fa-th"></i> <span>工厂管理</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        	 <li>
                            <a href="http://139.224.191.23/scm/designstore/list">
                                <i class="fa fa-th"></i> <span>设计库</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        	 <li>
                            <a href="http://139.224.191.23/scm/sysuser/list">
                                <i class="fa fa-th"></i> <span>员工管理</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        	 <li>
                            <a href="http://139.224.191.23/scm/operatelog/list">
                                <i class="fa fa-th"></i> <span>日志管理</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                        	 <li>
                            <a href="http://139.224.191.23/scm/sysrole/list">
                                <i class="fa fa-th"></i> <span>角色管理</span>
                                <i class="fa fa-angle-right pull-right"></i>
                            </a>
                        </li>
                    </ul>
                </section>
                <!-- /.sidebar -->
            </aside>
            <!-- Right side column. Contains the navbar and content of the page -->
            <aside class="right-side">
            	<section class="content-header">
                    <h1>创建打样订单</h1>
                    
                    
                    
                    <!--修改 2016/12/01-->
                    <ol class="ol_left">
		                <li>当前位置：</li>
		                <li><a href="#">打样订单</a></li>
		                <li>> 创建打样订单</li>
		            </ol>
                    <span class="pull-right" style="position: absolute; top: 25px; right: 20px;">
                		<span class="six-font">设计款数5款   </span>
                        <span class="six-font">剩余2天</span>
                		<a href="Design_order6.html" class="btn btn-primary btn-flat">上传设计稿</a>
                    </span>
                    <div class="clear" style="clear: both;"></div>
                    <!--修改 2016/12/01-->
                    
                    
               </section>
                <!-- Content Header (Page header) -->
                <section class="content">
                    <div class="row">
                    	<div class="col-md-12">
                            <div class="box">
                            	
                            	
                            	<!--修改 2016/12/01-->
			                    <div class="clearfix" style="padding: 10px 0 10px 25px;">
			                    	<span class="pull-left four-font">订单信息</span>
			                        <span class="bule fl up-div">收起<i class="sq-icon"></i></span>
			                    </div>
			                    <!--修改 2016/12/01-->
			                    
			                    
                                <div class="center">
                                    <div>填写基本信息</div>
                                    <form id="form">
                                    <table class="table table-bordered custormView">
                                        <tbody><tr>
                                            <td>客户名称</td>
                                            <td>
                                            
                                            	    <div class="btn-group bootstrap-select show-tick form-control"><button type="button" class="btn dropdown-toggle bs-placeholder btn-default" data-toggle="dropdown" role="button" title="请选择"><span class="filter-option pull-left">请选择</span>&nbsp;<span class="bs-caret"><span class="caret"></span></span></button><div class="dropdown-menu open" role="combobox"><div class="bs-searchbox"><input class="form-control" autocomplete="off" role="textbox" aria-label="Search" type="text"></div><ul class="dropdown-menu inner" role="listbox" aria-expanded="false"><li data-original-index="0" class="selected"><a tabindex="0" class="" data-tokens="null" role="option" aria-disabled="false" aria-selected="true"><span class="text">请选择</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="1"><a tabindex="0" class="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">ffsfdasaa</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="2"><a tabindex="0" class="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">达到萨芬</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="3"><a tabindex="0" class="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">杭州测试</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="4"><a tabindex="0" class="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">韩烦恼佛挡杀佛</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="5"><a tabindex="0" class="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">杭州光辉服饰</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="6"><a tabindex="0" class="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">杭州倒萨大大多</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="7"><a tabindex="0" class="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">110公司</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="8"><a tabindex="0" class="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">杭州大表哥</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="9"><a tabindex="0" class="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">测试</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="10"><a tabindex="0" class="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">11.29测试</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li><li data-original-index="11"><a tabindex="0" class="" data-tokens="null" role="option" aria-disabled="false" aria-selected="false"><span class="text">qiuqiu</span><span class="glyphicon glyphicon-ok check-mark"></span></a></li></ul></div><select name="customerId" class="selectpicker show-tick form-control" data-live-search="true" tabindex="-98">  
								                        <option selected="selected" value="">请选择</option> 
								                        <option value="42">ffsfdasaa</option>  
								                        <option value="43">达到萨芬</option>  
								                        <option value="44">杭州测试</option>  
								                        <option value="45">韩烦恼佛挡杀佛</option>  
								                        <option value="46">杭州光辉服饰</option>  
								                        <option value="47">杭州倒萨大大多</option>  
								                        <option value="48">110公司</option>  
								                        <option value="49">杭州大表哥</option>  
								                        <option value="50">测试</option>  
								                        <option value="51">11.29测试</option>  
								                        <option value="52">qiuqiu</option>  
								                         
								                    	</select>
                                            	    </div> 
                                            </td>
                                            <td></td>
                                            <td></td>
                                        </tr>
                                        <tr>
                                        	<td>
                                        		<label class="red">*</label>
                                        		截止时间
                                        	</td>
                                        	<td>
                                        		<div class="well">
												  	<div id="datetimepicker1" class="input-append date">
													    <input data-format="yyyy/MM/dd hh:mm:ss" name="proofingEnddate" type="text">
													    <span class="add-on">
													      <i data-time-icon="icon-time" data-date-icon="icon-calendar" class="icon-calendar"></i>
													    </span>
												  	</div>
												</div>
                                        	</td>
                                        	<td>合同附件</td>
                                        	<td>
                                        	<input type="file">
                                        		<p>
                                            <label class="red">*</label>
                                            可下次在订单详情页提交合同照片
                                        </p>
                                        	</td>
                                        </tr>
                                        <tr>
                                        	<td>客户需求</td>
                                        	<td colspan="3">
                                        		<div class="form-group textarea">
		                                            <textarea class="form-control" rows="3" name="requirement" placeholder="Enter ..."></textarea>
		                                        </div>
                                        	</td>
                                        </tr>
                                    </tbody></table>
                                    </form>
		                            <div class="clearfix">
		                                <span class="pull-left four-font">选择打样款型</span>
		                            </div>
                                    <p>
                                    	<button type="button" id="addbtn" class="btn btn-primary" style="margin-right: 10px;">共两款&nbsp;&nbsp;&nbsp;&nbsp;确定创建</button>
                                    	<button type="button" class="btn btn-default">取消</button>
                                    </p>
                        		</div>
                            </div><!-- /.box -->

                            
                        </div><!-- /.col -->
                        
                    </div><!-- /.row -->
                    
                </section>

                <!-- Main content -->
                <section class="content">
					
				
                </section><!-- /.content -->
                
                
            </aside><!-- /.right-side -->
        </div><!-- ./wrapper -->


        <!-- jQuery 2.0.2 -->
        <script src="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/jquery_002.js"></script>
        <!-- Bootstrap -->
        <script src="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/bootstrap.js" type="text/javascript"></script>
        <!-- AdminLTE App -->
        <script src="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/app.js" type="text/javascript"></script>
        <!-- AdminLTE for demo purposes -->
      
    	<!--datepickes-->
		<script src="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/bootstrap-datetimepicker_002.js" type="text/javascript"></script>
		<script src="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/bootstrap-datetimepicker.js" type="text/javascript"></script>
		<script type="text/javascript" src="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/bootstrap-select.js"></script> 
		<script src="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/jquery.js"></script>
    
    <script type="text/javascript">
    	
			// 时间选择
			// 时间选择
			$.fn.datetimepicker.dates['zh'] = {  
                days:       ["星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六","星期日"],  
                daysShort:  ["日", "一", "二", "三", "四", "五", "六","日"],  
                daysMin:    ["日", "一", "二", "三", "四", "五", "六","日"],  
                months:     ["一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月","十二月"],  
                monthsShort:  ["一", "二", "三", "四", "五", "六", "七", "八", "九", "十", "十一", "十二"],  
                meridiem:    ["上午", "下午"], 
                today:       "今天"  
            };
			$(function() {
			    $('#datetimepicker1').datetimepicker({
			      	lang:"ch",
			       	language:  'zh',  
		            weekStart: 1,  
		            todayBtn:  1,  
		            autoclose: 1,  
		            todayHighlight: 1,  
		            startView: 2,  
		            forceParse: 0,  
		            showMeridian: 1  
			    });
		
			    $('#datetimepicker2').datetimepicker({
			      	lang:"ch",
			       	language:  'zh',  
		            weekStart: 1,  
		            todayBtn:  1,  
		            autoclose: 1,  
		            todayHighlight: 1,  
		            startView: 2,  
		            forceParse: 0,  
		            showMeridian: 1  
			    });
				

			    $("#addbtn").click(function(){ 
			    	var dataList = new Array();
			    	$.ajax({
	                    type: "POST",
	                    dataType: "json",
	                    url: "doCreateProofingOrder",
	                    data: {patternSizeList:dataList,orderId:16},
	                    success : function(map) {  
	    	                if(map.body=="success"){
	    	                	alert("保存成功");
	    	                	window.location.href="list";
	    	                }else{
	    	                	alert(map.body);
	    	                }
	    	            },  
	    	            error : function(map) {  
	    	                alert("出现错误，请刷新页面");  
	    	            }  

	                });
		      	  });
			    
			});
			function addAmount(index){
		    	
		    	if(document.getElementById("patternAmount_"+index).style.display=="none"){
		    		document.getElementById("patternAmount_"+index).style.display="";
		    		document.getElementById("patternAmount_sum_"+index).style.display="";
		    	}else{
		    		document.getElementById("patternAmount_"+index).style.display="none";
		    		document.getElementById("patternAmount_sum_"+index).style.display="none";
		    	}
		    }
			
			function addRow(id){
				var len = $("#tab_"+id).find("tr").length -2;
				$("#tab_"+id+" tr:eq("+len+")").after('<tr><td><input name="color" type="text"/></td>'+
				'<td><input name="xsAmount" type="text"/></td>'+
				'<td><input name="sAmount" type="text"/></td>'+
				'<td><input name="mAmount" type="text"/>'+
				'</td><td><input name="lAmount" type="text"/></td>'+
                '<td><input name="xlAmount" type="text"/></td>'+
                '<td><input name="xxlAmount" type="text"/></td>'+
                '<td><div id="del_'+id+"_"+len+'" class="red_circle"><div></div></div></td></tr>');
				$("#patternAmount_sum_span_"+id).text("总计件数："+($("#tab_"+id).find("tr").length -2)+"件");
				$("#del_"+id+"_"+len).click(function(){
					$(this).parent().parent().remove();
					getPatternCnt();
				})
				getPatternCnt();
			}
			
			function getPatternCnt(){
				var cnt = 0;
				$("#addbtn").html("共"+cnt+"款&nbsp;&nbsp;&nbsp;&nbsp;确定创建");
			}
    </script>

<script src="%E6%96%B0%E5%BB%BA%E6%89%93%E6%A0%B7_files/t.js" charset="utf-8"></script><div class="bootstrap-datetimepicker-widget dropdown-menu"><ul><li class="collapse in"><div class="datepicker"><div class="datepicker-days" style="display: block;"><table class="table-condensed"><thead><tr><th class="prev">‹</th><th colspan="5" class="switch">十二月 2016</th><th class="next">›</th></tr><tr><th class="dow">一</th><th class="dow">二</th><th class="dow">三</th><th class="dow">四</th><th class="dow">五</th><th class="dow">六</th><th class="dow">日</th></tr></thead><tbody><tr><td class="day old">28</td><td class="day old">29</td><td class="day old">30</td><td class="day active">1</td><td class="day">2</td><td class="day">3</td><td class="day">4</td></tr><tr><td class="day">5</td><td class="day">6</td><td class="day">7</td><td class="day">8</td><td class="day">9</td><td class="day">10</td><td class="day">11</td></tr><tr><td class="day">12</td><td class="day">13</td><td class="day">14</td><td class="day">15</td><td class="day">16</td><td class="day">17</td><td class="day">18</td></tr><tr><td class="day">19</td><td class="day">20</td><td class="day">21</td><td class="day">22</td><td class="day">23</td><td class="day">24</td><td class="day">25</td></tr><tr><td class="day">26</td><td class="day">27</td><td class="day">28</td><td class="day">29</td><td class="day">30</td><td class="day">31</td><td class="day new">1</td></tr><tr><td class="day new">2</td><td class="day new">3</td><td class="day new">4</td><td class="day new">5</td><td class="day new">6</td><td class="day new">7</td><td class="day new">8</td></tr></tbody></table></div><div class="datepicker-months" style="display: none;"><table class="table-condensed"><thead><tr><th class="prev">‹</th><th colspan="5" class="switch">2016</th><th class="next">›</th></tr></thead><tbody><tr><td colspan="7"><span class="month">一</span><span class="month">二</span><span class="month">三</span><span class="month">四</span><span class="month">五</span><span class="month">六</span><span class="month">七</span><span class="month">八</span><span class="month">九</span><span class="month">十</span><span class="month">十一</span><span class="month active">十二</span></td></tr></tbody></table></div><div class="datepicker-years" style="display: none;"><table class="table-condensed"><thead><tr><th class="prev">‹</th><th colspan="5" class="switch">2010-2019</th><th class="next">›</th></tr></thead><tbody><tr><td colspan="7"><span class="year old">2009</span><span class="year">2010</span><span class="year">2011</span><span class="year">2012</span><span class="year">2013</span><span class="year">2014</span><span class="year">2015</span><span class="year active">2016</span><span class="year">2017</span><span class="year">2018</span><span class="year">2019</span><span class="year old">2020</span></td></tr></tbody></table></div></div></li><li class="picker-switch accordion-toggle"><a><i class="icon-time"></i></a></li><li class="collapse"><div class="timepicker"><div class="timepicker-picker"><table class="table-condensed"><tbody><tr><td><a href="#" class="btn" data-action="incrementHours"><i class="icon-chevron-up"></i></a></td><td class="separator"></td><td><a href="#" class="btn" data-action="incrementMinutes"><i class="icon-chevron-up"></i></a></td><td class="separator"></td><td><a href="#" class="btn" data-action="incrementSeconds"><i class="icon-chevron-up"></i></a></td></tr><tr><td><span data-action="showHours" data-time-component="hours" class="timepicker-hour">18</span></td> <td class="separator">:</td><td><span data-action="showMinutes" data-time-component="minutes" class="timepicker-minute">36</span></td> <td class="separator">:</td><td><span data-action="showSeconds" data-time-component="seconds" class="timepicker-second">35</span></td></tr><tr><td><a href="#" class="btn" data-action="decrementHours"><i class="icon-chevron-down"></i></a></td><td class="separator"></td><td><a href="#" class="btn" data-action="decrementMinutes"><i class="icon-chevron-down"></i></a></td><td class="separator"></td><td><a href="#" class="btn" data-action="decrementSeconds"><i class="icon-chevron-down"></i></a></td></tr></tbody></table></div><div class="timepicker-hours" data-action="selectHour" style="display: none;"><table class="table-condensed"><tbody><tr><td class="hour">00</td><td class="hour">01</td><td class="hour">02</td><td class="hour">03</td></tr><tr><td class="hour">04</td><td class="hour">05</td><td class="hour">06</td><td class="hour">07</td></tr><tr><td class="hour">08</td><td class="hour">09</td><td class="hour">10</td><td class="hour">11</td></tr><tr><td class="hour">12</td><td class="hour">13</td><td class="hour">14</td><td class="hour">15</td></tr><tr><td class="hour">16</td><td class="hour">17</td><td class="hour">18</td><td class="hour">19</td></tr><tr><td class="hour">20</td><td class="hour">21</td><td class="hour">22</td><td class="hour">23</td></tr></tbody></table></div><div class="timepicker-minutes" data-action="selectMinute" style="display: none;"><table class="table-condensed"><tbody><tr><td class="minute">00</td><td class="minute">03</td><td class="minute">06</td><td class="minute">09</td></tr><tr><td class="minute">12</td><td class="minute">15</td><td class="minute">18</td><td class="minute">21</td></tr><tr><td class="minute">24</td><td class="minute">27</td><td class="minute">30</td><td class="minute">33</td></tr><tr><td class="minute">36</td><td class="minute">39</td><td class="minute">42</td><td class="minute">45</td></tr><tr><td class="minute">48</td><td class="minute">51</td><td class="minute">54</td><td class="minute">57</td></tr></tbody></table></div><div class="timepicker-seconds" data-action="selectSecond" style="display: none;"><table class="table-condensed"><tbody><tr><td class="second">00</td><td class="second">03</td><td class="second">06</td><td class="second">09</td></tr><tr><td class="second">12</td><td class="second">15</td><td class="second">18</td><td class="second">21</td></tr><tr><td class="second">24</td><td class="second">27</td><td class="second">30</td><td class="second">33</td></tr><tr><td class="second">36</td><td class="second">39</td><td class="second">42</td><td class="second">45</td></tr><tr><td class="second">48</td><td class="second">51</td><td class="second">54</td><td class="second">57</td></tr></tbody></table></div></div></li></ul></div></body></html>